package cn.z2huo.demo.mapper.role;

import cn.z2huo.demo.example.role.RolePermissionRelationDOExample;
import cn.z2huo.demo.model.dataobject.role.RolePermissionRelationDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>该 Mapper 对应数据库表为 z2huo_role_permission_relation
 * <p>
 * 
 * @author z2huo
 * @date   2024-12-10
 */
@Mapper
public interface RolePermissionRelationMapper {

    long countByExample(RolePermissionRelationDOExample example);

    int deleteByExample(RolePermissionRelationDOExample example);

    int deleteByPrimaryKey(Long id);

    int insert(RolePermissionRelationDO row);

    int insertSelective(RolePermissionRelationDO row);

    List<RolePermissionRelationDO> selectByExample(RolePermissionRelationDOExample example);

    RolePermissionRelationDO selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("row") RolePermissionRelationDO row, @Param("example") RolePermissionRelationDOExample example);

    int updateByExample(@Param("row") RolePermissionRelationDO row, @Param("example") RolePermissionRelationDOExample example);

    int updateByPrimaryKeySelective(RolePermissionRelationDO row);

    int updateByPrimaryKey(RolePermissionRelationDO row);
}